﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace X.TestConsole
{
    class Program
    {
        [STAThread]
        static void Main(string[] args)
        {
            var str = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx5a0383bd9d426ed6&redirect_uri=http://test001.zgsmile.com/WX_Index.aspx&response_type=code&scope=snsapi_userinfo&state=123&connect_redirect=1#wechat_redirect";
            var qrEncoder = new QRCode.QRCodeHelper();
            qrEncoder.Version = 0;
            var base64 = qrEncoder.CreateBase64String(str);
            qrEncoder.CreateFile(@"c:\testQRCode.jpg",str);
            Console.WriteLine(base64);

            System.Windows.Forms.Clipboard.SetDataObject(base64, true);


            Console.ReadLine();

        }
    }
}
